<%= javascript_include_tag "pagination" %>
<h1>
	<%= I18n.t("posts.titles.index") %>
</h1><br />

<div id="all_posts_">
	<%= render 'all' %>
</div>

<script type="text/javascript">
	function doAllPostsAcc()
		{
			//We could not use var for handle div#all_posts because the content, when reloading, change, and the handle is destroyed
			jQuery( 'div#all_posts' ).accordion(
			{
				collapsible: true
			});
		}
	function init()
		{
			doAllPostsAcc();
		}
	init();
</script>
<br />


<%= link_to I18n.t("posts.titles.new"), new_post_path %>